package com.gomoku.backend.service.impl.pk;

import com.gomoku.backend.consumer.WebSocketServer;
import com.gomoku.backend.service.pk.StartGameService;
import org.springframework.stereotype.Service;

@Service
public class StartGameServiceImpl implements StartGameService {
    @Override
    public String startGame(Integer aId, Integer bId) {
        System.out.println("startGame: aId"+aId+" bId"+bId);
        WebSocketServer.startGame(aId, bId);
        return "start game success";
    }

    @Override
    public String startAIGame(Integer userId, Integer botId) {
        System.out.println("startAIGame: userId"+userId+" bot_id"+botId);
        WebSocketServer.startAIGame(userId, botId);
        return "start game success";
    }
}
